package com.heima.mapper;

import com.github.pagehelper.Page;
import com.heima.pojo.Sku;
import com.heima.pojo.SkuClass;
import com.heima.pojo.vo.ManageCommodityVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ManageCommodityMapper {
    void insert(ManageCommodityVo vo);

    Page<Sku>  pagingQuery(Sku dto);
    @Select("select class_id,class_name from tb_sku_class where class_id=#{classId}")
    SkuClass selectByIdAll(@Param("classId") Integer classId);

    void update(Sku sku);
}
